import request from '@/utils/request'
// 修改密码
export const editPassword = (data: any) =>
  request({
    url: '/background/admin/setPassword',
    method: 'post',
    data
  })
// 获取营业状态
export const getStatus = () =>
  request({
    url: `/shop/status`,
    method: 'get'
  })
// 设置营业状态
export const setStatus = (data: any) =>
  request({
    url: `/shop/` + data,
    method: 'put',
    data: data
  })
// 退出登录
export const logout = () =>
  request({
    url: '/background/admin/logout',
    method: 'post'
  })
